package com.gitee.feizns.explore.data_structure.queue;

import java.util.function.Consumer;

/**
 * @author feizns
 * @since 2019/10/8
 */
public interface Queue<T> {

    int size();

    boolean enqueue(T t);

    T dequeue();

    T peek();

    boolean isFull();

    boolean isEmpty();

    void forEach(Consumer<T> t);

}

